package ambika.innerclasses;

public class StaticInnerClass {
 
	public static int num = 5;
	
	public  int getNum() {
		return num;
	}

	public void setNum(int num) {
		StaticInnerClass.num = num;
	}

	public void sayHiToAll(){
		System.out.println("hello everyone!");
		
	}
	
	static class myStaticClass{
		public void sayHiToAll(){
			System.out.println("hello again everyone! looks like there are "+num+"people over here. Where is everyone else?");
			
		}
	}
	
	public static void main (String[] args){
		ambika.innerclasses.StaticInnerClass.myStaticClass demo = new ambika.innerclasses.StaticInnerClass.myStaticClass();
		demo.sayHiToAll();
		
		StaticInnerClass sDemo = new StaticInnerClass();
		sDemo.setNum(10);
		
		demo.sayHiToAll();
	}
}
